package com.rabbiter.oes.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value = "回复表")
@TableName(value = "replay")
public class Replay {

    @TableId(value = "replayId", type = IdType.AUTO)
    @ApiModelProperty(value = "回复编号")
    private Integer replayId;

    @TableField(value = "messageId")
    @ApiModelProperty(value = "留言编号")
    private Integer messageId;

    @TableField(value = "replay")
    @ApiModelProperty(value = "回复内容")
    private String replay;

    @TableField(value = "replayTime")
    @ApiModelProperty(value = "回复时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Date replayTime;

}